package 设计模式.n_模板模式;

/**
 * @author caihe
 * @date 2023/3/14 14:11
 */
public abstract class DrinkTemplate {
    
    void boilWater() {
        System.out.println("烧开水");
    }
    
    abstract void drink();
    
    
    final void exec() {
        boilWater();
        drink();
    }
    
}
